package day11zy.jisuanji;

import day11zy.phone.Shangwang;

public class Jsj implements Shubiao,Jianpan,Yp,Cpu {
    @Override
    public void getsb() {
        System.out.println("鼠标为："+sb);
    }

    @Override
    public void getjp() {
        System.out.println("键盘为："+jp);
    }

    @Override
    public void getcpu() {
        System.out.println("cpu为："+cpu);
    }

    @Override
    public void getyp() {
        System.out.println("硬盘为："+yp);
    }

    private int rl;

    public void setRl(int rl) {
        this.rl = rl;
    }

    public int getRl() {
        return rl;
    }
    private Yp yp;
    private Cpu cpu;
    private Shubiao sb;
    private Jianpan jp;

    public void setSb(Shubiao sb) {
        this.sb = sb;
    }

    public void setJp(Jianpan jp) {
        this.jp = jp;
    }

    public void setYp(Yp yp) {
        this.yp = yp;
    }

    public void setCpu(Cpu cpu) {
        this.cpu = cpu;
    }


    public Shubiao getSb() {
        return sb;
    }

    public Jianpan getJp() {
        return jp;
    }

    public Yp getYp() {
        return yp;
    }

    public Cpu getCpu() {
        return cpu;
    }

    public Jsj(){

    }
    public Jsj(int rl){
        this.rl = rl;
    }
    public void jieshao(int rl){
        System.out.println("这台电脑容量为："+rl+"鼠标为："+sb+"键盘为："+jp+"硬盘为："+yp+"cpu为："+cpu);
    }
}
